<?php


include_once XOOPS_ROOT_PATH."/class/xoopsobject.php";

$countryproptype=array();
$countryproptype[1]=array('id'=>1,'name'=>_PROPTYPE_COMMON_INT);
$countryproptype[2]=array('id'=>2,'name'=>_PROPTYPE_COMMON_TEXTBOX);
$countryproptype[3]=array('id'=>3,'name'=>_PROPTYPE_FINANCE_CURRENCY); 

class neogeocountryproptype  extends XoopsObject{

	function neogeocountryproptype (){
	$this->XoopsObject();
	#$this->initVar('dohtml', XOBJ_DTYPE_INT, '1');	
	$this->initVar('id', XOBJ_DTYPE_INT, 0, false);								
	$this->initVar('name', XOBJ_DTYPE_TXTBOX, '', false);	
	$this->initVar('action', XOBJ_DTYPE_TXTBOX, '', false);
	$this->initVar('description', XOBJ_DTYPE_TXTBOX, '', false);			
	 						
	
	}
	
}


class neogeocounryproptypeHandler extends XoopsObjectHandler{
	var $table='neogeocounryproptype'
    function &create($isNew = true)
    {
    }
	
	
    function &get($id)
    { global $countryproptype;
         $id = intval($id);
        if ($id > 0) {
		return $countryproptype[$id];		
       }
        return false;
    }
	
	 function insert(&$item)
    {
    }


    function &getObjects()
    { global $countryproptype;
     return $countryproptype;
    }

    /**
     * Count some images
     * 
     * @param   object  $criteria   {@link CriteriaElement} 
     * @return  int
     **/
    function getCount()
    { global $countryproptype
	return $countryproptype;
     }



}

?>